<template>
	<div>
		<u-navbar :border-bottom="false" :is-back="showBack" :title="title[current]" title-color="#303131" :customBack='leftClick'></u-navbar>
		<step :companyData="companyData" />
	</div>
</template>

<script>
import storage from "@/utils/storage.js";
import step from "./step";
export default {
	data() {
		return {
			companyData: false,
			current: 1,
			showBack:true,
			title: {
				1: "资料",
				2: "财务资质信息",
				3: "店铺信息"
			}
		};
	},
	components: {
		step
	},
	onShow() {
		this.check()
	},
	methods: {
		check(){
			let userInfo = storage.getUserInfo();
			let checkDis = false
			if(userInfo.status.checkName == '待补充资料' || userInfo.status.checkName =='审核拒绝'){
				checkDis = false
			}else{
				checkDis = true
			}
			this.companyData = {
				storeDisable:checkDis,
				status:userInfo.status.checkName,
				remark:userInfo.check.remark
			}
		},
		//跳转到首页
		leftClick(){
			uni.switchTab({
				url: "/pages/tabbar/user/my"
			});
		},
	}
};
</script>

<style lang="scss" scoped></style>
